package com.lancoo.cvas.mapper;

import com.lancoo.cvas.config.MybatisRedisCache;
import com.lancoo.cvas.entity.RuleTeacherTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lancoo.cvas.pojo.dto.ArrangeTeacherRuleDto;
import org.apache.ibatis.annotations.CacheNamespace;

import java.util.List;

/**
 * 教师规则
 * 
 * @author liufeng
 * @email 1037383243@qq.com
 * @date 2023-12-04 11:54:01
 */
@CacheNamespace(implementation = MybatisRedisCache.class, eviction = MybatisRedisCache.class)
public interface RuleTeacherTimeMapper extends BaseMapper<RuleTeacherTime> {

    List<String> fixCheck(Integer taskId, List<String> teacherIds, String schoolId, int deleted, int flag);

    List<String> getProhibitByTeachingClass(List<Long> ids,int deleted, int flag);

    List<ArrangeTeacherRuleDto> getArrangeTeacherRuleByTaskId(Integer taskId, String schoolId, String term,Integer deleted);

    List<String> getTeacherProhibitByTeachingClass(Integer taskId, Long teachingClassId, int deleted, int flag);
}
